Contribution org.nuxeo.ecm.webapp.contentview.search.contrib--contentViews
In component org.nuxeo.ecm.webapp.contentview.search.contrib
org.nuxeo.ecm.webapp.contentview.search.contrib
inside nuxeo-platform-webapp-base-5.8.jar
This contribution is part of XML component Extension Point
Extension point contentViews of component ContentViewService.Contributed Items
XML Source
<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">
<contentView name="simple_search">
<title>label.search.form.simple</title>
<translateTitle>true</translateTitle>
<iconPath>/icons/document_listing_icon.png</iconPath>
<showTitle>true</showTitle>
<emptySentence>label.content.empty.search</emptySentence>
<translateEmptySentence>true</translateEmptySentence>
<coreQueryPageProvider>
<property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
<property name="coreSession">#{documentManager}</property>
<pattern>
SELECT * FROM Document WHERE ecm:fulltext LIKE ? AND
ecm:mixinType !=
'HiddenInNavigation' AND ecm:isCheckedInVersion = 0
AND
ecm:currentLifeCycleState != 'deleted'
</pattern>
<parameter>#{documentSearchActions.simpleSearchKeywords}</parameter>
<!-- sort column="dc:title" ascending="true" / sort by fulltext relevance -->
<sortInfosBinding>
#{documentSearchActions.searchSortInfos}
</sortInfosBinding>
<pageSize>20</pageSize>
</coreQueryPageProvider>
<showPageSizeSelector>true</showPageSizeSelector>
<useGlobalPageSize>true</useGlobalPageSize>
<refresh>
<event>documentChanged</event>
<event>documentChildrenChanged</event>
</refresh>
<cacheKey>only_one_cache</cacheKey>
<cacheSize>1</cacheSize>
<resultColumns>
#{documentSearchActions.selectedLayoutColumns}
</resultColumns>
<resultLayouts>
<layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
<layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_compact_2_columns" translateTitle="true"/>
<layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_icon_2_columns" translateTitle="true"/>
</resultLayouts>
<selectionList>CURRENT_SELECTION</selectionList>
<actions category="CURRENT_SELECTION_LIST"/>
</contentView>
<contentView name="advanced_search">
<title>command.advancedSearch</title>
<translateTitle>true</translateTitle>
<showTitle>true</showTitle>
<emptySentence>label.content.empty.search</emptySentence>
<translateEmptySentence>true</translateEmptySentence>
<coreQueryPageProvider>
<property name="coreSession">#{documentManager}</property>
<property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
<whereClause docType="AdvancedSearch">
<predicate operator="FULLTEXT" parameter="ecm:fulltext">
<field name="fulltext_all" schema="advanced_search"/>
</predicate>
<predicate operator="=" parameter="ecm:isCheckedInVersion">
<field name="isCheckedInVersion" schema="advanced_search"/>
</predicate>
<predicate operator="STARTSWITH" parameter="ecm:path">
<field name="searchpath" schema="advanced_search"/>
</predicate>
<predicate operator="FULLTEXT" parameter="dc:title">
<field name="title" schema="advanced_search"/>
</predicate>
<predicate operator="FULLTEXT" parameter="dc:description">
<field name="description" schema="advanced_search"/>
</predicate>
<predicate operator="LIKE" parameter="dc:rights">
<field name="rights" schema="advanced_search"/>
</predicate>
<predicate operator="LIKE" parameter="dc:source">
<field name="source" schema="advanced_search"/>
</predicate>
<predicate operator="IN" parameter="dc:nature">
<field name="nature" schema="advanced_search"/>
</predicate>
<predicate operator="IN" parameter="dc:coverage">
<field name="coverage" schema="advanced_search"/>
</predicate>
<predicate operator="IN" parameter="dc:subjects">
<field name="subjects" schema="advanced_search"/>
</predicate>
<predicate operator="BETWEEN" parameter="dc:created">
<field name="created_min" schema="advanced_search"/>
<field name="created_max" schema="advanced_search"/>
</predicate>
<predicate operator="BETWEEN" parameter="dc:modified">
<field name="modified_min" schema="advanced_search"/>
<field name="modified_max" schema="advanced_search"/>
</predicate>
<predicate operator="BETWEEN" parameter="dc:issued">
<field name="issued_min" schema="advanced_search"/>
<field name="issued_max" schema="advanced_search"/>
</predicate>
<predicate operator="BETWEEN" parameter="dc:valid">
<field name="valid_min" schema="advanced_search"/>
<field name="valid_max" schema="advanced_search"/>
</predicate>
<predicate operator="BETWEEN" parameter="dc:expired">
<field name="expired_min" schema="advanced_search"/>
<field name="expired_max" schema="advanced_search"/>
</predicate>
<predicate operator="LIKE" parameter="dc:format">
<field name="format" schema="advanced_search"/>
</predicate>
<predicate operator="LIKE" parameter="dc:language">
<field name="language" schema="advanced_search"/>
</predicate>
<predicate operator="!=" parameter="ecm:currentLifeCycleState">
<field name="currentLifeCycleState" schema="advanced_search"/>
</predicate>
<fixedPart>
ecm:mixinType != 'HiddenInNavigation' AND
ecm:isCheckedInVersion = 0
</fixedPart>
</whereClause>
<!-- sort column="dc:title" ascending="true" / sort by fulltext relevance -->
<pageSize>20</pageSize>
<sortInfosBinding>
#{documentSearchActions.searchSortInfos}
</sortInfosBinding>
</coreQueryPageProvider>
<searchLayout name="advanced_search"/>
<showFilterForm>true</showFilterForm>
<showPageSizeSelector>true</showPageSizeSelector>
<useGlobalPageSize>true</useGlobalPageSize>
<refresh>
<event>documentChanged</event>
<event>documentChildrenChanged</event>
</refresh>
<cacheKey>only_one_cache</cacheKey>
<cacheSize>1</cacheSize>
<resultColumns>
#{documentSearchActions.selectedLayoutColumns}
</resultColumns>
<resultLayouts>
<layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
<layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_compact_2_columns" translateTitle="true"/>
<layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_icon_2_columns" translateTitle="true"/>
</resultLayouts>
<selectionList>CURRENT_SELECTION</selectionList>
<actions category="CURRENT_SELECTION_LIST"/>
<flags>
<flag>ADVANCED_SEARCH</flag>
</flags>
</contentView>
<contentView name="nxql_search">
<emptySentence>label.content.empty.search</emptySentence>
<translateEmptySentence>true</translateEmptySentence>
<coreQueryPageProvider>
<property name="coreSession">#{documentManager}</property>
<property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
<pattern escapeParameters="false" quoteParameters="false">?</pattern>
<parameter>#{documentSearchActions.nxqlQuery}</parameter>
<!-- sort column="dc:title" ascending="true" / sort by fulltext relevance -->
<sortInfosBinding>
#{documentSearchActions.searchSortInfos}
</sortInfosBinding>
<pageSize>20</pageSize>
</coreQueryPageProvider>
<showPageSizeSelector>true</showPageSizeSelector>
<useGlobalPageSize>true</useGlobalPageSize>
<refresh>
<event>documentChanged</event>
<event>documentChildrenChanged</event>
<event/>
</refresh>
<cacheKey>only_one_cache</cacheKey>
<cacheSize>1</cacheSize>
<resultColumns>
#{documentSearchActions.selectedLayoutColumns}
</resultColumns>
<resultLayouts>
<layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
<layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_compact_2_columns" translateTitle="true"/>
<layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" title="document_listing_icon_2_columns" translateTitle="true"/>
</resultLayouts>
<selectionList>CURRENT_SELECTION</selectionList>
<actions category="CURRENT_SELECTION_LIST"/>
</contentView>
</extension>